﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.MultiUserAdminPageBase" %>
<script language="c#" runat="server">
protected string GetPath(object id)
{
	return System.IO.Path.Combine(System.IO.Path.GetDirectoryName(Request.RawUrl), "sub_instance/edit.aspx").Replace("\\", "/") + "?SubInstanceID=" + id;
}
</script>
<section data-page="nav">
	<div class="ali-accordion" data-mode="collapsible">
		<h1>我的模块</h1>
		<div>
			<ali:List Source="SubInstances">
				<ul class="ali-tree" data-checkbox="false">
					<ali:Record>
						<%If Convert.ToBoolean(["IsDefault"])%>
							<li><a href="<%=GetPath(["ID"])%>" target="ali-navtab" class="ali-active" data-id="<%=["ID"]%>" data-inner-id="<%=["InnerID"]%>" data-user-id="<%=["UserID"]%>"><%=["Name"]%></a></li>
						<%Else%>
							<li><a href="<%=GetPath(["ID"])%>" target="ali-navtab" data-id="<%=["ID"]%>" data-inner-id="<%=["InnerID"]%>" data-user-id="<%=["UserID"]%>"><%=["Name"]%></a></li>
						<%EndIf%>
					</ali:Record>
				</ul>
			</ali:List>
		</div>
	</div>
	
	<div id="sub-instance-menu" class="ali-panel">
		<div class="ali-panel-header"><b></b></div>
		<div class="ali-panel-body"></div>
	</div>
</section>